<template>
  <div>
    <el-card style="margin-bottom:20px;height: 250px">

    <div slot="header" class="clearfix">
        <span>订单参数</span>
      </div>
      <div class="order-bio">
        <div class="order-skills order-bio-section">
          <div class="order-bio-section-body">
            <div class="progress-item">
              <b>年华分红</b>
              <span>{{order.yield}}</span>
            </div>
            <div class="progress-item">
              <b>收益方式</b>
              <span>{{EarnTypeShow[order.earn_type]}}</span>
            </div>
            <div class="progress-item" v-if="info.status==2">
              <b>起投金额</b>
              <span>{{order.limit_money}}</span>
            </div>
            <div class="progress-item">
              <b>开始时间</b>
              <span>{{order.start_date}}</span>
            </div>
            <div class="progress-item">
              <b>截止时间</b>
              <span>{{order.end_date}}</span>
            </div>
            <div class="progress-item">
              <b>标的周期</b>
              <span>{{cycle_type[order.cycle_type]}}</span>
            </div>
          </div>
        </div>
      </div>
    </el-card>
  </div>

</template>

<script>
  const EarnTypeShow = {
    1: '按月分红',
    2: '到期本息'
  }
  const cycle_type = {
    0: '1天',
    1: '15天',
    2: '1个月',
    3: '3个月',
    4: '6个月',
    5: '9个月',
    6: '1年',
  }
  export default {

    props: {
      order: {
        type: Object,
        default: () => {
          return {}
        }
      },
      info: {
        type: Object,
        default: () => {
          return {}
        }
      }

    },

    data() {
      return {
        EarnTypeShow,
        cycle_type,
      }
    },
    created() {
    },
    methods: {}
  }
</script>
<style>
  .el-button span:not:first-child {
    font-size: 12px
  }
</style>
<style lang="scss" scoped>

  .box-center {
    margin: 0 auto;
    display: table;
  }

  .card-panel-text {
    line-height: 18px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    margin-bottom: 12px;
  }

  .text-muted {
    color: #777;
  }

  .progress-item {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .order-profile {
    .order-name {
      font-weight: bold;
    }

    .box-center {
      padding-top: 10px;
    }

    .order-role {
      padding-top: 10px;
      font-weight: 400;
      font-size: 14px;
    }

    .box-social {
      padding-top: 30px;

      .el-table {
        border-top: 1px solid #dfe6ec;
      }
    }

    .order-follow {
      padding-top: 20px;
    }
  }

  .order-bio {
    color: #606266;

    span {
      padding-left: 4px;
    }

    .order-bio-section {
      font-size: 16px;
      padding: 15px 0;

      .order-bio-section-header {
        border-bottom: 1px solid #dfe6ec;
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-weight: bold;
      }
    }
  }
</style>
